package com.shop.cereshop.app.dao.dl;

import com.shop.cereshop.app.dl.logic.domain.CereShopProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CereShopProductMapper {
    int deleteByPrimaryKey(Long productId);

    int insert(CereShopProduct record);

    int insertSelective(CereShopProduct record);

    CereShopProduct selectByPrimaryKey(Long productId);

    List<CereShopProduct> getCommodityByType(@Param("classifyId") Integer classifyId, @Param("content") String content);

    List<CereShopProduct> getCommodityByMark();

    int updateByPrimaryKeySelective(CereShopProduct record);

    int updateByPrimaryKeyWithBLOBs(CereShopProduct record);

    int updateByPrimaryKey(CereShopProduct record);

    Integer getSoldOut(Long productId);

    List<CereShopProduct> getCommodityByTypeAndTest(@Param("classifyId") Integer classifyId, @Param("content") String content);

    Integer selByShopIdAndSkuId(@Param("shopId")Long shopId, @Param("skuId")Long skuId);
}